package com.huangkailong.designpattern.adapter.interfaces;

import com.huangkailong.designpattern.adapter.Ac220v;

/**
 * DC 5V.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class Dc5v extends PowerAdapter {
    public Dc5v(Ac220v ac220v) {
        super(ac220v);
    }

    @Override
    public int outputDc5v() {
        int v = ac220v.oupAc220v();
        System.out.println("AC220V 转 DC5V");
        return v / 44;
    }
}
